package com.suray.attendance.common.result;

import lombok.Getter;

/**
 * 统一返回结果状态信息类
 *
 */
@Getter
public enum ResultCodeEnum {

    SUCCESS(200,"成功"),
    FAIL(201, "失败"),
    SERVICE_ERROR(5001, "服务异常"),
    DATA_NULL(5002, "参数为空"),
    PARAMETER_ILLEGAL(5003, "参数不合法"),
    SECKILL_ILLEGAL(5004, "请求不合法");

    private Integer code;

    private String message;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
